#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
void solve()
{
    int n = 0;
    int i = 0;
    int T, A;
    int Tsum = 0;
    int Asum = 0;
    cin >> n;
    for (i = 0; i < n; i++)
    {
        cin >> T >> A;
        Tsum += T;
        Asum += A;
    }
    if (Tsum > Asum)
        cout << "Takahashi";
    else if (Tsum == Asum)
        cout << "Draw";
    else
        cout << "Aoki";
}
int main()
{
    solve();
    return 0;
}
